home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds.fmt / rcs.man < prev    next >
Encoding:
Text File  |  1989-01-06  |  8.2 KB  |  199 lines

  1.  
  2.  
  3.  
  4. RCS                       User Commands                       RCS
  5.  
  6.  
  7.  
  8. NNAAMMEE
  9.      rcs - change RCS file attributes
  10.  
  11. SSYYNNOOPPSSIISS
  12.      rrccss [ options ] file ...
  13.  
  14. DDEESSCCRRIIPPTTIIOONN
  15.      _R_c_s creates new RCS files or changes attributes of existing
  16.      ones.  An RCS file contains multiple revisions of text, an
  17.      access list, a change log, descriptive text, and some con-
  18.      trol attributes.  For _r_c_s to work, the caller's login name
  19.      must be on the access list, except if the access list is
  20.      empty, the caller is the owner of the file or the superuser,
  21.      or the --ii option is present.
  22.  
  23.      Files ending in `,v' are RCS files, all others are working
  24.      files. If a working file is given, _r_c_s tries to find the
  25.      corresponding RCS file first in directory ./RCS and then in
  26.      the current directory, as explained in _c_o (1).
  27.  
  28.      --ii         creates and initializes a new RCS file, but does
  29.                 not deposit any revision.  If the RCS file has no
  30.                 path prefix, _r_c_s tries to place it first into the
  31.                 subdirectory ./RCS, and then into the current
  32.                 directory.  If the RCS file already exists, an
  33.                 error message is printed.
  34.  
  35.      --aa_l_o_g_i_n_s   appends the login names appearing in the comma-
  36.                 separated list _l_o_g_i_n_s to the access list of the
  37.                 RCS file.
  38.  
  39.      --AA_o_l_d_f_i_l_e  appends the access list of _o_l_d_f_i_l_e to the access
  40.                 list of the RCS file.
  41.  
  42.      --ee[_l_o_g_i_n_s] erases the login names appearing in the comma-
  43.                 separated list _l_o_g_i_n_s from the access list of the
  44.                 RCS file.  If _l_o_g_i_n_s is omitted, the entire
  45.                 access list is erased.
  46.  
  47.      --cc_s_t_r_i_n_g   sets the comment leader to _s_t_r_i_n_g. The comment
  48.                 leader is printed before every log message line
  49.                 generated by the keyword $Log$  during checkout
  50.                 (see _c_o). This is useful for programming
  51.                 languages without multi-line comments. During _r_c_s
  52.                 -_i or initial _c_i, the comment leader is guessed
  53.                 from the suffix of the working file.
  54.  
  55.      --ll[_r_e_v]    locks the revision with number _r_e_v.  If a branch
  56.                 is given, the latest revision on that branch is
  57.                 locked.  If _r_e_v is omitted, the latest revision
  58.                 on the trunk is locked.  Locking prevents over-
  59.                 lapping changes.  A lock is removed with _c_i or
  60.  
  61.  
  62.  
  63. Purdue University            6/29/83                            1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RCS                       User Commands                       RCS
  71.  
  72.  
  73.  
  74.                 _r_c_s -_u (see below).
  75.  
  76.      --uu[_r_e_v]    unlocks the revision with number _r_e_v.  If a
  77.                 branch is given, the latest revision on that
  78.                 branch is unlocked.  If _r_e_v is omitted, the
  79.                 latest lock held by the caller is removed.  Nor-
  80.                 mally, only the locker of a revision may unlock
  81.                 it.  Somebody else unlocking a revision breaks
  82.                 the lock. This causes a mail message to be sent
  83.                 to the original locker.  The message contains a
  84.                 commentary solicited from the breaker.  The com-
  85.                 mentary is terminated with a line containing a
  86.                 single `.' or control-D.
  87.  
  88.      --LL         sets locking to _s_t_r_i_c_t. Strict locking means that
  89.                 the owner of an RCS file is not exempt from lock-
  90.                 ing for checkin.  This option should be used for
  91.                 files that are shared.
  92.  
  93.      --UU         sets locking to non-strict. Non-strict locking
  94.                 means that the owner of a file need not lock a
  95.                 revision for checkin. This option should NOT be
  96.                 used for files that are shared.  The default (--LL
  97.                 or --UU) is determined by your system administra-
  98.                 tor.
  99.  
  100.      --nn_n_a_m_e[:_r_e_v]
  101.                 associates the symbolic name _n_a_m_e with the branch
  102.                 or revision _r_e_v. _R_c_s prints an error message if
  103.                 _n_a_m_e is already associated with another number.
  104.                 If _r_e_v is omitted, the symbolic name is deleted.
  105.  
  106.      --NN_n_a_m_e[:_r_e_v]
  107.                 same as --nn, except that it overrides a previous
  108.                 assignment of _n_a_m_e.
  109.  
  110.      --oo_r_a_n_g_e    deletes ("outdates") the revisions given by
  111.                 _r_a_n_g_e.  A range consisting of a single revision
  112.                 number means that revision.  A range consisting
  113.                 of a branch number means the latest revision on
  114.                 that branch.  A range of the form _r_e_v_1-_r_e_v_2 means
  115.                 revisions _r_e_v_1 to _r_e_v_2 on the same branch, -_r_e_v
  116.                 means from the beginning of the branch containing
  117.                 _r_e_v up to and including _r_e_v, and _r_e_v- means from
  118.                 revision _r_e_v to the end of the branch containing
  119.                 _r_e_v.  None of the outdated revisions may have
  120.                 branches or locks.
  121.  
  122.      --qq         quiet mode; diagnostics are not printed.
  123.  
  124.      --ss_s_t_a_t_e[:_r_e_v]
  125.                 sets the state attribute of the revision _r_e_v to
  126.  
  127.  
  128.  
  129. Purdue University            6/29/83                            2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RCS                       User Commands                       RCS
  137.  
  138.  
  139.  
  140.                 _s_t_a_t_e. If _r_e_v is omitted, the latest revision on
  141.                 the trunk is assumed; If _r_e_v is a branch number,
  142.                 the latest revision on that branch is assumed.
  143.                 Any identifier is acceptable for _s_t_a_t_e.  A useful
  144.                 set of states is _E_x_p (for experimental), _S_t_a_b
  145.                 (for stable), and _R_e_l (for released).  By
  146.                 default, _c_i sets the state of a revision to _E_x_p.
  147.  
  148.      --tt[_t_x_t_f_i_l_e]
  149.                 writes descriptive text into the RCS file
  150.                 (deletes the existing text).  If _t_x_t_f_i_l_e is omit-
  151.                 ted, _r_c_s prompts the user for text supplied from
  152.                 the std. input, terminated with a line containing
  153.                 a single `.' or control-D.  Otherwise, the
  154.                 descriptive text is copied from the file _t_x_t_f_i_l_e.
  155.                 If the --ii option is present, descriptive text is
  156.                 requested even if --tt is not given.  The prompt is
  157.                 suppressed if the std. input is not a terminal.
  158.  
  159. DDIIAAGGNNOOSSTTIICCSS
  160.      The RCS file name and the revisions outdated are written to
  161.      the diagnostic output.  The exit status always refers to the
  162.      last RCS file operated upon, and is 0 if the operation was
  163.      successful, 1 otherwise.
  164.  
  165. FFIILLEESS
  166.      The caller of the command must have read/write permission
  167.      for the directory containing the RCS file and read permis-
  168.      sion for the RCS file itself.  _R_c_s creates a semaphore file
  169.      in the same directory as the RCS file to prevent simultane-
  170.      ous update.  For changes, _r_c_s always creates a new file. On
  171.      successful completion, _r_c_s deletes the old one and renames
  172.      the new one.  This strategy makes links to RCS files use-
  173.      less.
  174.  
  175. IIDDEENNTTIIFFIICCAATTIIOONN
  176.      Author: Walter F. Tichy, Purdue University, West Lafayette,
  177.      IN, 47907.
  178.      Revision Number: 3.1 ; Release Date: 83/04/04 .
  179.      Copyright (C) 1982 by Walter F. Tichy.
  180.  
  181. SSEEEE AALLSSOO
  182.      co (1), ci (1), ident(1), rcsdiff (1), rcsintro (1),
  183.      rcsmerge (1), rlog (1), rcsfile (5), sccstorcs (8).
  184.      Walter F. Tichy, "Design, Implementation, and Evaluation of
  185.      a Revision Control System," in _P_r_o_c_e_e_d_i_n_g_s _o_f _t_h_e _6_t_h _I_n_t_e_r_-
  186.      _n_a_t_i_o_n_a_l _C_o_n_f_e_r_e_n_c_e _o_n _S_o_f_t_w_a_r_e _E_n_g_i_n_e_e_r_i_n_g, IEEE, Tokyo,
  187.      Sept. 1982.
  188.  
  189. BBUUGGSS
  190.  
  191.  
  192. Purdue University            6/29/83                            3
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.